package org.jeecg.modules.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("db_city")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="db_city对象", description="db_city")
public class DbCity  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**地名编号*/
    @Excel(name = "地名编号", width = 15)
    @ApiModelProperty(value = "地名编号")
    private String code;
    /**地区名称*/
    @Excel(name = "地区名称", width = 15)
    @ApiModelProperty(value = "地区名称")
    private String name;
    /**省*/
    @Excel(name = "省", width = 15)
    @ApiModelProperty(value = "省")
    private String province;
    /**市*/
    @Excel(name = "市", width = 15)
    @ApiModelProperty(value = "市")
    private String city;
    /**区*/
    @Excel(name = "区", width = 15)
    @ApiModelProperty(value = "区")
    private String area;
    /**街道*/
    @Excel(name = "街道", width = 15)
    @ApiModelProperty(value = "街道")
    private String town;
    /**完整名*/
    @Excel(name = "完整名", width = 15)
    @ApiModelProperty(value = "完整名")
    private String fullName;
    /**地图名*/
    @Excel(name = "地图名", width = 15)
    @ApiModelProperty(value = "地图名")
    private String mapName;
    /**父编码*/
    @Excel(name = "父编码", width = 15)
    @ApiModelProperty(value = "父编码")
    private String parentCode;
    /**等级*/
    @Excel(name = "等级", width = 15)
    @ApiModelProperty(value = "等级")
    private Integer lev;
    /**子级地区*/
    @TableField(exist = false)
    private List<DbCity> children;
}
